#!/usr/bin/env python
# -*- coding: utf-8 -*-
#

from os import path
DATA_DIR = path.join(path.realpath(path.curdir), "data")
TOKYO_SERVER_PARMS = '#bnum=1000000#fpow=13#opts=ld'

USE_MASTER = True
DEBUG = False

NODES = {
  #Lookup nodes
  'lookup1_A': {'id': 1, 'host': '127.0.0.1:41201', 'master': '127.0.0.1:51201'},
  'lookup1_B': {'id': 2, 'host': '127.0.0.1:51201', 'master': '127.0.0.1:41201'},
  'lookup2_A': {'id': 3, 'host': '127.0.0.1:42201', 'master': '127.0.0.1:52201'},
  'lookup2_B': {'id': 4, 'host': '127.0.0.1:52201', 'master': '127.0.0.1:42201'},

  #Storage nodes
  'storage1_A': {'id': 5, 'host': '127.0.0.1:44201', 'master': '127.0.0.1:54201'},
  'storage1_B': {'id': 6, 'host': '127.0.0.1:54201', 'master': '127.0.0.1:44201'},
  'storage2_A': {'id': 7, 'host': '127.0.0.1:45201', 'master': '127.0.0.1:55201'},
  'storage2_B': {'id': 8, 'host': '127.0.0.1:55201', 'master': '127.0.0.1:45201'},
  'storage3_A': {'id': 9, 'host': '127.0.0.1:46201', 'master': '127.0.0.1:56201'},
  'storage3_B': {'id': 10, 'host': '127.0.0.1:56201', 'master': '127.0.0.1:46201'},
}
